<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><spring:message  code="pim"/> - <spring:message code="message.assistance.password"/></title>
<link href="<%= request.getContextPath() %>/css/custom.css" rel="stylesheet" type="text/css" />
<link href="<%= request.getContextPath() %>/css/style.css" rel="stylesheet" type="text/css" />
<link href="<%= request.getContextPath() %>/css/v.css" rel="stylesheet" type="text/css" />
<link href="<%= request.getContextPath() %>/css/resetPassword.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery-1.6.2.js"></script>
<%@include file="script/pim-util.jsp" %>
<%@include file="script/reset-password-script.jsp" %>
<script type="text/javascript">
	function onChangeLocale(lang) {
	    var newURL = "";
	    var questionMarkLocation = document.URL.indexOf("?");
	    if (questionMarkLocation != -1) {
	        newURL = document.URL.substring(0, questionMarkLocation); 
	    } else {
	        newURL = document.URL;
	    }
	    newURL = newURL + "?locale=" + lang;
	   document.location=newURL;
	}
</script>
</head>
<body>
<div id="all">
<div id="wrapper">
<div id="mainheader">
	<jsp:include page="include/common/headerNotSignIn.jsp" />
</div> 
<div id="content-wrapper">
<div id="top-menu">
    <jsp:include page="include/common/topMenuHome.jsp" />
</div>

<div id="body" style="padding: 20px;">
 <div class="v-title"><h2><spring:message code="message.assistance.password"/></h2></div>
 <div class="wrapper">
  <div id="v-global-message">
       <c:if test="${resetOK == true }">
	      	<span class="v-global-success-message v-row">
	      	    <span><spring:message  code="message.reset.password.success" /></span>
	      	</span>
	   </c:if>
	   <c:if test="${resetOK == false }">
	      	<span class="v-global-error-message v-row">
	      	    <span><spring:message  code="warning.change.password.email.invalid" /></span>
	      	</span>
	    </c:if>
  </div>
  <div id="main">
      <form name="requestPasswordReset" accept-charset="UTF-8" method="POST" action="">        
        <p class="intro"><label for="email-requestPasswordReset"><spring:message code="message.reset.password" /></label></p>
        <p>
          <input type="text" data-ime-mode-disabled="" size="58" maxlength="50" name="email" value="${email}">
        </p>
        <input type="button" class="btn-primary" value="Submit" name="request">
      </form>
  </div>
 </div>
</div>

</div>
</div>
<div class="footer">
	<jsp:include page="include/common/footer.jsp" />
</div>
</div>
</body>
</html>